package com.example.demo.consumer;

import com.alibaba.dubbo.config.spring.context.annotation.DubboComponentScan;
import com.example.demo.consumer.consumer.ConsumerHello;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;


/**
 * @author 许路路
 */
@SpringBootApplication
@DubboComponentScan(basePackages = "com.example.demo.api")
public class AnnoConsumerMain {

    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(AnnoConsumerMain.class, args);
        ConsumerHello hello = applicationContext.getBean(ConsumerHello.class);
        hello.say("1234567");
        System.in.read();
    }

}
